package com.demo.service;

import com.demo.pojo.Teacher;

import java.util.List;

public interface TeacherService {
    // 新增 teacher 到数据库
    public void saveTeacher(Teacher teacher);

    // 根据主键查询对象信息
    public Teacher queryById(String id);

    // 根据性别和年龄来查询
    public List<Teacher> queryByCondition(String sex, Integer age);

    // 修改操作
    public void updateTeacher(Teacher teacher);

    // 根据主键 id 做条件删除
    public void deleteTeacher(Teacher teacher);
}
